/*
 * @Author: 秦福凯
 * @LastEditTime: 2025-10-27 09:02:56
 * @Description: 用户登录信息
 */
import { defineStore } from 'pinia'

export const useUserStore = defineStore('userStore', {
	state: ()=>({
    token: "",
    userInfo: { name: "XXX" }
	}),
  getters: {},
  actions: {
    // Set Token
    setToken(token) {
      this.token = token;
    },
    // Set setUserInfo
    setUserInfo(userInfo) {
      this.userInfo = userInfo;
    }
  },
	persist:true,
});